package com.zp.business.entity.outpFees.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.zp.common.excel.annotation.ExcelDictFormat;
import com.zp.common.excel.convert.ExcelDictConvert;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * 门诊收费记录明细视图对象
 *
 * @author zhang peng
 * @ date 2024-04-12
 */
@Data
@ExcelIgnoreUnannotated
public class OutpFeesDetailVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private String outpFeesDetailId;

    /**
     * 主记录id
     */
    @ExcelProperty(value = "主记录id")
    private String outpFeesMasterId;

    /**
     * 收费号
     */
    @ExcelProperty(value = "收费号")
    private String feesNo;

    /**
     * 流水号
     */
    @ExcelProperty(value = "流水号")
    private String serialNo;

    /**
     * 项目类型
     */
    @ExcelProperty(value = "项目类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "bill_item_class_dict")
    private String itemClass;

    /**
     * 诊疗项目名称
     */
    @ExcelProperty(value = "诊疗项目名称")
    private String packItemName;

    /**
     * 项目名称
     */
    @ExcelProperty(value = "项目名称")
    private String itemName;

    /**
     * 项目编码
     */
    @ExcelProperty(value = "项目编码")
    private String itemCode;

    /**
     * 价表ID
     */
    @ExcelProperty(value = "价表ID")
    private String priceId;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private Integer num;

    /**
     * 单价
     */
    @ExcelProperty(value = "单价")
    private BigDecimal price;

    /**
     * 进货价格
     */
    @ExcelProperty(value = "进货价格")
    private BigDecimal tradePrice;

    /**
     * 网络价格
     */
    @ExcelProperty(value = "网络价格")
    private BigDecimal networkPrice;

    /**
     * 门诊费用分类
     */
    @ExcelProperty(value = "门诊费用分类", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "outp_rcpt_fee_dict")
    private String classOnRcpt;

    /**
     * 核算项目科目
     */
    @ExcelProperty(value = "核算项目科目", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "reck_item_class_dict")
    private String classOnReckoning;

    /**
     * 会计科目
     */
    @ExcelProperty(value = "会计科目", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "tally_subject_dict")
    private String subjCode;

    /**
     * 应付费用
     */
    @ExcelProperty(value = "应付费用")
    private BigDecimal costs;

    /**
     * 实收费用
     */
    @ExcelProperty(value = "实收费用")
    private BigDecimal charges;

    /**
     * 舍入差额
     */
    @ExcelProperty(value = "舍入差额")
    private BigDecimal diffCost;

    /**
     * 机构ID
     */
    @ExcelProperty(value = "机构ID")
    private String orgId;

    /**
     * 备注信息
     */
    @ExcelProperty(value = "备注信息")
    private String remarks;

    /**
     * 处方、检查、检验、治疗项目明细表id
     */
    private String applyItemId;

    /**
     * 申请号
     */
    private String applyNo;

    /**
     * 诊疗项目id
     */
    private String clinicItemId;

    /**
     * 门诊医嘱id
     */
    private String clinicOrderId;

    /**
     * 交费标志
     */
    private String chargeFlag;

    /**
     * 开单科室
     */
    private String applyDept;

    private String applyDeptName;

    /**
     * 执行科室
     */
    private String implementDept;

    private String implementDeptName;

    /**
     * 执行人
     */
    private String implementUser;

    private List<OutpFeesDetailVo> outpFeesDetailVoList;

    private List<OutpFeesPaymentsMoneyVo> paymentsMoneyVoList;

    private Date createTime;

    private BigDecimal costsSum;

    /**
     * 确认标志
     */
    private String confirmFlag;
}
